<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp"%>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/user.js"></script>
</head>
<body>
    <div id="excelUpload">
        <form id="uploadForm" method="post" enctype="multipart/form-data">
            <tabel>
                <tr>
                    <td><input type="file" name="excel" style="width: 180px; margin-top: 20px; margin-left: 5px;"></td>
                    <td><a href="javascript:void(0);" id="downloadTml">下载模板</a></td>
                </tr>
            </tabel>
        </form>
    </div>

    <%--工具栏--%>
    <div id="user_toolbar">
        <shiro:hasPermission name="user:add">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" id="add">添加</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="user:edit">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" id="edit">编辑</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="user:enable">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" id="enable">启用</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="user:disable">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true" id="disable">禁用</a>
        </shiro:hasPermission>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" id="reload">刷新</a>
        <input type="text" name="keyword" style="width: 200px; height: 30px;padding-left: 5px;">
        <a class="easyui-linkbutton" iconCls="icon-search" id="searchbtn">查询</a>
        <a class="easyui-linkbutton" iconCls="icon-edit" id="export">导出</a>
        <a class="easyui-linkbutton" iconCls="icon-edit" id="import">导入</a>
    </div>

    <%--用户列表--%>
    <table id="user_data_grid"></table>


    <%--用户对话框--%>
    <div id="user_dialog">
        <form id="userForm">
            <%--添加一个隐藏域--%>
            <input type="hidden" name="id">
            <table align="center" style="border-spacing: 0px 10px">
                <tr>
                    <td>用户名:</td>
                    <td><input type="text" name="username" class="easyui-validatebox" data-options="required:true"></td>
                    <td>是否为管理员:</td>
                    <td><input id="admin" name="admin" ></td>
                </tr>
                <tr >
                    <td>昵称:</td>
                    <td><input  type="text" name="nickName"></td>
                    <td>性别:</td>
                    <td><input id="gender" type="text" name="gender"></td>
                </tr>

                <tr>
                    <td>电话:</td>
                    <td><input type="text" name="phone" ></td>
                    <td>邮箱:</td>
                    <td><input type="text" name="email"></td>
                </tr>

                <tr>
                    <td>部门:</td>
                    <td><input id="dept" name="deptId" /></td>
                    <td>岗位:</td>
                    <td><input id="job" name="jobIds" /></td>
                </tr>
                <tr>
                    <td>角色:</td>
                    <td><input id="role" name="roleIds" /></td>
                    <td>状态:</td>
                    <td><input id="enabled" name="enabled" /></td>
                </tr>
                <tr id="password">
                    <td>密码:</td>
                    <td><input  type="password" name="password" class="easyui-validatebox"></td>
                </tr>
            </table>
        </form>

    </div>
</body>
</html>
